export interface Judge {
  id: number
  name: string
  created_at: string
}

export interface Contestant {
  id: number
  number: string
  name: string
  is_active: boolean
  created_at: string
}

export interface Score {
  id: number
  judge_id: number
  contestant_id: number
  score: number
  created_at: string
}

export interface ScoreResponse {
  id: number
  judge_name: string
  contestant_name: string
  score: number
  created_at: string
}

export interface ContestantResponse {
  id: number
  number: string
  name: string
  average_score: number | null
  rank: number | null
  total_scores: number
}

export interface JudgeCreate { name: string }
export interface ContestantCreate { number: string; name: string }
export interface ScoreCreate { judge_id: number; contestant_id: number; score: number }

export interface ApiResponse<T> {
  data?: T
  message?: string
  error?: string
}
